<?php /* Smarty version 2.6.25, created on 2013-02-24 16:42:57
         compiled from admin/add_school.htm */ ?>
<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<title><?php echo $this->_tpl_vars['name']; ?>
</title>
	<link rel="stylesheet" href="<?php echo $this->_tpl_vars['path']; ?>
/form/jqtransformplugin/jqtransform.css" type="text/css" media="all" />
	<script type="text/javascript" src="<?php echo $this->_tpl_vars['path']; ?>
/form/requiered/jquery.js" ></script>
	<script type="text/javascript" src="<?php echo $this->_tpl_vars['path']; ?>
/form/jqtransformplugin/jquery.jqtransform.js" ></script>

	<script charset="utf-8" src="<?php echo $this->_tpl_vars['path']; ?>
/editor/kindeditor.js"></script>
	<script charset="utf-8" src="<?php echo $this->_tpl_vars['path']; ?>
/editor/lang/zh_CN.js"></script>

	<script charset="utf-8" src="<?php echo $this->_tpl_vars['path']; ?>
/editor/text.js"></script>
</head>
<body>
	<form name="example" method="post" action="?action=add_school">

<table border="0" width="800px" id="table1" align=center>
	<tr>
		<td>城市：</td>
		<td>	<select name="city">
	        	<?php unset($this->_sections['city']);
$this->_sections['city']['name'] = 'city';
$this->_sections['city']['loop'] = is_array($_loop=$this->_tpl_vars['city']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['city']['show'] = true;
$this->_sections['city']['max'] = $this->_sections['city']['loop'];
$this->_sections['city']['step'] = 1;
$this->_sections['city']['start'] = $this->_sections['city']['step'] > 0 ? 0 : $this->_sections['city']['loop']-1;
if ($this->_sections['city']['show']) {
    $this->_sections['city']['total'] = $this->_sections['city']['loop'];
    if ($this->_sections['city']['total'] == 0)
        $this->_sections['city']['show'] = false;
} else
    $this->_sections['city']['total'] = 0;
if ($this->_sections['city']['show']):

            for ($this->_sections['city']['index'] = $this->_sections['city']['start'], $this->_sections['city']['iteration'] = 1;
                 $this->_sections['city']['iteration'] <= $this->_sections['city']['total'];
                 $this->_sections['city']['index'] += $this->_sections['city']['step'], $this->_sections['city']['iteration']++):
$this->_sections['city']['rownum'] = $this->_sections['city']['iteration'];
$this->_sections['city']['index_prev'] = $this->_sections['city']['index'] - $this->_sections['city']['step'];
$this->_sections['city']['index_next'] = $this->_sections['city']['index'] + $this->_sections['city']['step'];
$this->_sections['city']['first']      = ($this->_sections['city']['iteration'] == 1);
$this->_sections['city']['last']       = ($this->_sections['city']['iteration'] == $this->_sections['city']['total']);
?>
				    <option value="<?php echo $this->_tpl_vars['city'][$this->_sections['city']['index']]['id']; ?>
"><?php echo $this->_tpl_vars['city'][$this->_sections['city']['index']]['city']; ?>
</option>
		        <?php endfor; endif; ?>
			    </select>
		</td>
	</tr>
	<tr>
		<td>学校：　</td>
		<td><input type="text" name="name"/><input type="checkbox" name="hot" id="">热门</td>
	</tr>
	<tr>
		<td>　</td>
		<td>　</td>
	</tr>
	<tr>
		<td></td>
		<td></td>
	</tr>
</table>
<input type="submit" value="Add" />
	</form>

</body>
</html>
